package com.jsh.erp.constants;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * Description
 *
 * @author <a href="https://qiankunpingtai.cn">qiankunpingtai</a>
 * @Date: 2019/6/5 9:39
 */
@Component
public class ConfigConstants {
    //是否启用redis
    public static Integer redisEnable;



    public Integer getRedisEnable() {
        return redisEnable;
    }
    @Value("${redis.enable}")
    public  void setRedisEnable(Integer redisEnable) {
        ConfigConstants.redisEnable = redisEnable;
    }
}
